import request from '@/utils/request'

// 封装工单统计接口
export const getReportInfo = (start, end) => request.get(`/task-service/task/taskReportInfo/${start}/${end}`)
// 封装订单总数接口
export const getOrderCount = (start, end) => request.get('/order-service/report/orderCount', { params: { start, end } })
// 封装收入接口
export const getOrderAmount = (start, end) => request.get('/order-service/report/orderAmount', { params: { start, end } })
// 封装销售额统计接口
export const getAmountCollect = (collectType, start, end) => request.get(`/order-service/report/amountCollect/${collectType}/${start}/${end}`)
// 封装根据地区汇总销售额数据接口
export const getRegionCollect = (start, end) => request.get(`/order-service/report/regionCollect/${start}/${end}`)
// 封装根据地区汇总销售额数据接口
export const getHotTop = (start, end) => request.get(`/order-service/report/skuTop/10/${start}/${end}`)
// 封装合作商点位汇总统计接口
export const getNodeCollect = () => request.get('/vm-service/node/nodeCollect')
// 封装获取点位总数接口
export const getNodeCount = () => request.get('/vm-service/node/count')
// 封装获取合作商总数接口
export const getPartnerCount = () => request.get('/user-service/partner/count')
// 封装获取10个故障设备列表接口
export const getStatusTop10 = () => request.get('/status-service/status/top10')
